package com.example.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 何星霖
 */
@RestController
@Api(description = "全局异常测试")
@RequestMapping(value = "error")
public class ErrorController {
    @ApiOperation(value = "全局异常测试", notes = "全局异常测试")
    @RequestMapping(value = "/getuser" ,method = RequestMethod.POST)
    public String getuser(int i){
        int j=1/i;
        return "succes:"+j;
    }
}
